﻿using System;
using System.Windows.Forms;
using LogHelper;

namespace WindowsApp
{
    class MyLogContent : LogContent
    {

        public MyLogContent(string title, string message) : base(true)
        {
            Title = title;
            Message = message;
            UserName = "当前登录用户";
            Version = Application.ProductVersion;
            Program = Application.ProductName;
        }

        public MyLogContent(string title, Exception ex) : this(title, ex == null ? "" : ex.Message)
        {
            Error = ex;
        }

    }
}
